﻿<%@ Page Title="写信" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WriteMail.aspx.cs" Inherits="KPI.WriteMail" %>

<%@ Register Src="Controls/GroupUsers.ascx" TagName="GroupUsers" TagPrefix="uc2" %>
<%@ Register Src="Controls/Messages.ascx" TagName="Messages" TagPrefix="uc3" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
	<script src="Scripts/kpi_mail.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<div class="pagetitle">
		<span>写信 </span>
	</div>
	<uc3:Messages ID="Messages1" runat="server" />
	<div id="mail_writemailpage">
		<div id="mail_recievercontainer" class="writemail_recievercontainer">
			<div class="writemail_recievercontainer_header">
				<span>选择收件人</span>
			</div>
			<uc2:GroupUsers ID="GroupUsers1" runat="server" />
		</div>
		<div id="mail_writemailcontent" class="writemail_mailcontent">
			<asp:HiddenField ID="hfMailRecievers" runat="server" ClientIDMode="Static" />
			<div id="writemail_recievercontainer_recievers" runat="server" clientidmode="Static" class="onerow writemail_recievercontainer_recievers">
				<span class="tip">请在左侧选择收件人</span>
			</div>
			<div class="onerow">
				<label for="txtMailSubject">主题</label>
			</div>
			<div class="onerow">
				<asp:TextBox ID="txtMailSubject" runat="server" MaxLength="256" Width="98%" ClientIDMode="Static"></asp:TextBox>
			</div>
			<div class="onerow">
				<label>附件 (注: 附件大小不能超过10M, 大于10M的将被丢弃.)</label>
			</div>
			<div class="onerow">
				<asp:FileUpload ID="fuMailAtt" runat="server" Width="300" />
			</div>
			<div class="onerow">
				<label for="CKEditorMailContent">内容</label>
			</div>
			<div class="onerow">
				<CKEditor:CKEditorControl ID="CKEditorMailContent" ToolbarCanCollapse="false" ResizeEnabled="true" BasePath="/ckeditor/"
					ValidationGroup="writemail" DefaultLanguage="zh-cn" runat="server" Width="97%">
				</CKEditor:CKEditorControl>
			</div>
			<div class="buttonscontainer">
				<asp:Button ID="btnSend" Text="发 送" CssClass="button" runat="server" ValidationGroup="writemail" OnClientClick="return btnSend_ClientClick(this);"
					OnClick="btnSend_Click" />
				<asp:Button ID="btnCancel" runat="server" CssClass="button" Text="取 消" OnClick="btnCancel_Click" />
				<span class="failurenotification" style="display: none;" id="failurenotification_recievers">请选择收件人</span>
				<asp:RequiredFieldValidator ID="rfvMailSubject" runat="server" ValidationGroup="writemail" ControlToValidate="txtMailSubject"
					EnableClientScript="true" CssClass="failurenotification" ErrorMessage="邮件主题不能为空" ToolTip="邮件主题不能为空">邮件主题不能为空</asp:RequiredFieldValidator>
				<%--<asp:RequiredFieldValidator ID="rfvMailContent" runat="server" ValidationGroup="writemail" ControlToValidate="CKEditorMailContent"
					EnableClientScript="true" CssClass="failurenotification" ErrorMessage="邮件内容不能为空" ToolTip="邮件内容不能为空">邮件内容不能为空</asp:RequiredFieldValidator>--%>
			</div>
		</div>
		<div class="clear">
		</div>
	</div>
</asp:Content>
